package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc TenantCycleTypeInstanceDto
 * @使用场景
 */
@Data
public class TenantCycleTypeInstanceDto
  extends BaseDto
  implements Serializable {

  /**
   * 周期类型实例ID
   */
  @ApiModelProperty("周期类型实例ID")
  private String cycleTypeInstanceId;

  /**
   * 周期类型实例标识
   */
  @ApiModelProperty("周期类型实例标识")
  private String cycleTypeInstanceCode;

  /**
   * 周期类型实例简称
   */
  @ApiModelProperty("周期类型实例简称")
  private String cycleNumberShortName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    TenantCycleTypeInstanceDto that = (TenantCycleTypeInstanceDto) o;
    return (
      cycleTypeInstanceId == that.cycleTypeInstanceId &&
      cycleTypeInstanceCode == that.cycleTypeInstanceCode &&
      cycleNumberShortName == that.cycleNumberShortName
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      cycleTypeInstanceId,
      cycleTypeInstanceCode,
      cycleNumberShortName
    );
  }

}
